import {
  ajax
} from "@/config/apiServer/axios-config.js";
import {
  URLS
} from "@/config/apiServer/urls.js";


// 修改密码
export function editPassword(form) {
  return ajax({
    type: 'PUT',
    url: URLS.EDIT_PASSWORD,
    params: form
  })
}

// 管理员列表
export function managerList(form) {
  return ajax({
    type: 'get',
    url: URLS.MANAGERS,
    params: form
  })
}

// 增加管理员
export function addManager(form) {
  return ajax({
    type: 'POST',
    url: URLS.MANAGER,
    params: form
  })
}

// 删除管理员
export function delManager(form) {
  return ajax({
    type: 'delete',
    url: URLS.MANAGER,
    params: form
  })
}

// 修改管理员
export function editManager(form) {
  return ajax({
    type: 'PUT',
    url: URLS.MANAGER,
    params: form
  })
}